<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ProcutSku extends Model
{
    protected $table='procut_sku';
    protected $guarded=[];
    public $timestamps=false;
    use HasFactory;

    public function name()
    {
         return $this->hasMany(SpecsValue::class,'id','specs_value_id');
    }

    public function getArrayValuesAttribute($value)
    {
        return json_decode($value);
    }
}
